.comment {
    color: rgb(var(--color-title));

    :global {
        .form {
            display: flex;
            flex-direction: column;
            gap: 1.563vw;
            .form-item {
                display: grid;
                grid-template-columns: auto 1fr;
                // 表单项标题
                .label {
                    padding: 0;
                    font-size: 14px;
                    display: block;
                }
                // 表单项内容
                .content {
                    font-size: 12px;
                    grid-column-start: 2;
                    grid-row-start: 2;

                    // 评论
                    textarea {
                        font-size: 16px;
                        background-color: rgb(var(--color-background-input));
                        height: 149px;
                        width: 100%;
                        border-radius: 0.417vw;
                        outline: none;
                        padding: 10px;
                    }

                    // 表情
                    .emoji-btn {
                        align-items: center;
                        margin-top: 10px;
                        background-color: rgb(var(--color-background-input));
                        border-radius: 7px;
                        display: inline-flex;
                        gap: 6px;
                        padding: 6px 11px;

                        path {
                            fill: rgb(var(--color-title));
                        }
                    }
                    .visible-container {
                        margin-top: 10px;

                        .emoji-list {
                            border-radius: 10px;
                            background-color: rgb(var(--color-background-input));
                            width: 50%;
                            padding: 10px;
                            font-size: 24px;
                            max-height: 200px;
                            span {
                                cursor: pointer;
                            }
                        }
                    }
                }

                // 名称、邮箱、地址
                input.content {
                    background-color: rgb(var(--color-background-input));
                    padding: 0.4vw;
                    padding-left: 0.5vw;
                    border-radius: 0.208vw;
                    outline: none;
                    width: 100%;
                    // border: #dcdfe6 1px solid;
                }

                // 头像
                &.email {
                    .image {
                        box-shadow: 0 0 0 2px myRgb(--color-border);
                        grid-row-start: 2;
                        align-self: center;
                        border-radius: 50%;
                        overflow: hidden;
                    }
                }
            }
            // 底部操作按钮
            .operations {
                display: flex;
                align-items: center;
                gap: 1.563vw;
                font-size: 16px;

                button {
                    cursor: pointer;
                    line-height: 1.3;
                    color: rgb(var(--color-title));
                    background-color: rgb(var(--color-background-accent));
                    border-radius: 0.26vw;
                    padding: 7px 15px;
                    border: none;
                    font-size: 12px;
                }

                .switch-wrap {
                    color: rgb(var(--color-text));
                    display: flex;
                    align-items: center;
                    gap: 10px;
                    .label {
                        font-size: 16px;
                    }

                    input {
                        --width: 40px;
                        width: var(--width);
                        height: 18px;
                        --handleoffset: calc(var(--width) / 1.8);
                    }
                }
            }
        }
    }

    @media screen and ($phone) {
        border-radius: 10px;
        :global {
            .form {
                .form-item {
                    grid-template-columns: 1fr;

                    .content {
                        margin-top: 10px;
                        grid-column-start: 1;
                        .visible-container {
                            .emoji-list {
                                width: 100%;
                            }
                        }
                    }

                    &.email {
                        .image {
                            background-color: rgb(var(--color-background-input));
                            margin-top: 10px;
                            margin-left: 10px;
                        }
                    }

                    &.name,
                    &.email,
                    &.address {
                        input {
                            height: 40px;
                            padding-left: 10px;
                        }
                    }

                    &.comment {
                        .label {
                            line-height: 1;
                        }
                    }
                }

                .info {
                    display: grid;
                }

                .operations {
                    margin-top: 10px;

                    button {
                        border-radius: 5px;
                    }
                }
            }
        }
    }
}
